import React from 'react';
import { observer, inject } from 'mobx-react';
import { isEMClient, getClient } from '../../util';
import Login from './Login';

@inject('portalLoginStore')
@observer
class Index extends React.Component {
  constructor(props) {
    super(props);
  }

  componentWillMount() {
    const { portalLoginStore: store } = this.props;
    store.getDataByUsing();
  }

  render() {
    const client = getClient(this.props);
    return <Login client={client} />;
  }
}

export default Index;
